Skip to content

Analytics: unnecessary stops and nuisance blocks, exported as replay cases; the reviewer requests changes only for named problems - #328

Merged
nambok merged 1 commit into
mainfrom
feat/stop-judge-analytics
Nov 6, 2026
Merged

nambok merged 1 commit into
mainfrom
feat/stop-judge-analytics

Conversation

@nambok

@nambok nambok commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Summary

Every question, stop, extra fix round and request for changes now goes through one stop judge on the platform, which records what people did next. This adds the view of that: how many stops weren't needed and how many blocks were nuisances, with examples and a download of them as replay cases. It also brings the reviewer's docs and the Require tests setting in line with the owner's policy: changes are requested only for a named correctness, security or data-loss problem; everything else is a Nit, Suggestion or FYI on the approval.

Changes

  • Analytics, Reliability view: Stops and blocks. Three tiles: Unnecessary stops (questions answered with the default, stops retried as they were or overridden), Nuisance blocks (reviews dismissed, merged with the flagged lines unchanged, or overridden), and how many times the judge went ahead instead. A table lists the newest confirmed-wrong decisions with the step, what people did and a link to the run or pull request. "Export them as replay cases" downloads them for the platform's replay suite. The section reads GET /api/analytics/decisions and GET /api/analytics/decisions/export, and hides itself when the platform doesn't answer.
  • Reviewer settings, Require tests: the help text says a missing test is flagged as a Suggestion and CoderHelm still writes tests for its own changes; it no longer says the review blocks on it.
  • Docs, the PR reviewer: a "When it requests changes" section with the three note labels, and the Tests row says what each setting does now.

Verification

  • npm run lint, npm run typecheck, npm run check:openapi and npm run build pass.
  • Playwright against the static build: e2e/analytics.spec.ts (15, including a new test for the section, its examples, the run link and the export download) and e2e/audit-reviewer.spec.ts (34) pass.
  • Docs: test:unit, build, typecheck, check:links and check:output pass.
  • Not verified against a live platform: the endpoints are new in the platform pull request that pins this one.

…cases; the reviewer requests changes only for named problems

The analytics Reliability view gets a Stops and blocks section: the share of the stop judge's stops (questions, waits, extra fix rounds, hand-offs) that people's next step showed weren't needed, and of its blocks that were dismissed or merged unchanged, with the newest examples and a download of them as replay cases. The reviewer docs and the Require tests setting say what the review now does: changes requested only for a named correctness, security or data-loss problem; everything else a Nit, Suggestion or FYI on the approval.
@nambok
nambok merged commit 8434a36 into main Nov 6, 2026
10 checks passed
@nambok
nambok deleted the feat/stop-judge-analytics branch November 6, 2026 16:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant